home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / plugins / objects / constraint / r3cnslng.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.0 KB  |  119 lines

  1.  
  2. // JavaScript wrapper for r3cnslng.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_CNSLNG_H = 1;
  7. include("plugins/objects/constraint/r3constr.js")
  8.  
  9.  
  10. var R3CLID_CNSLNG = 1427;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Execute constraint procedure.
  16. // Virtual method
  17.  
  18. R3CNSLNGM_EXECUTE = 1427000;
  19.  
  20. function mR3CNSLNGM_EXECUTE() {
  21.   DoA(this.r3obj, 1427000, 0, R3TID_INTEGER, 0);
  22. }
  23.  
  24. // Description: Call the target object's
  25. // Virtual method
  26. // Returns: Boolean, true if succeeded
  27.  
  28. R3CNSLNGM_UPDATETARGET = 1427001;
  29.  
  30. function mR3CNSLNGM_UPDATETARGET() {
  31.   return   DoA(this.r3obj, 1427001, 0, R3TID_INTEGER, 0);
  32. }
  33.  
  34. // Description: Allocate interpreter used for executing the constraint program.
  35. // Virtual method
  36. // Returns: Object, interpreter
  37.  
  38. R3CNSLNGM_ALLOCINTERP = 1427002;
  39.  
  40. function mR3CNSLNGM_ALLOCINTERP() {
  41.   return R3ToJS(  DoA(this.r3obj, 1427002, 0, R3TID_INTEGER, 0));
  42. }
  43.  
  44. // Description: Find interpreter of given type
  45. // Virtual method
  46. // Returns: Object, null if no interpreter was found.
  47. // p3: Integer, interpreter to be found    
  48.  
  49. R3CNSLNGM_FINDINTERP = 1427003;
  50.  
  51. function mR3CNSLNGM_FINDINTERP(p3) {
  52.   return R3ToJS(  DoA(this.r3obj, 1427003, p3, R3TID_INTEGER, 0));
  53. }
  54.  
  55. // Description: Derived classes must provide information about the actual interpreter class to be used.
  56. // Virtual method
  57. // Returns: Integer, interpreter class to be used.
  58.  
  59. R3CNSLNGM_GETINTERPCLID = 1427004;
  60.  
  61. function mR3CNSLNGM_GETINTERPCLID() {
  62.   return   DoA(this.r3obj, 1427004, 0, R3TID_INTEGER, 0);
  63. }
  64.  
  65.  
  66.  
  67.  
  68. R3CNSLNGA_Script = 1427500;
  69. function SetR3CNSLNGA_Script(value) {
  70.   R3Set(this.r3obj, R3CNSLNGA_Script, value, R3TID_STRING, 0); 
  71. }
  72.  
  73. function GetR3CNSLNGA_Script() {
  74.   return R3Get(this.r3obj, R3CNSLNGA_Script, R3TID_STRING, 0); 
  75. }
  76.  
  77. R3CNSLNGA_ScriptClid = 1427501;
  78. function SetR3CNSLNGA_ScriptClid(value) {
  79.   R3Set(this.r3obj, R3CNSLNGA_ScriptClid, value, R3TID_INTEGER, 0); 
  80. }
  81.  
  82. function GetR3CNSLNGA_ScriptClid() {
  83.   return R3Get(this.r3obj, R3CNSLNGA_ScriptClid, R3TID_INTEGER, 0); 
  84. }
  85.  
  86. R3CNSLNGA_ScriptObj = 1427502;
  87. function SetR3CNSLNGA_ScriptObj(value) {
  88.   R3Set(this.r3obj, R3CNSLNGA_ScriptObj, value, R3TID_OBJECT, 0); 
  89. }
  90.  
  91. function GetR3CNSLNGA_ScriptObj() {
  92.   return R3ToJS(R3Get(this.r3obj, R3CNSLNGA_ScriptObj, R3TID_OBJECT, 0)); 
  93. }
  94.  
  95.  
  96.  
  97. function r3Cnslng () { 
  98.    this.base = r3God;
  99.    if(arguments.length) {
  100.       this.base(R3CLID_CNSLNG, arguments);
  101.    }
  102.    // Methods
  103.    this.EXECUTE=mR3CNSLNGM_EXECUTE;
  104.    this.UPDATETARGET=mR3CNSLNGM_UPDATETARGET;
  105.    this.ALLOCINTERP=mR3CNSLNGM_ALLOCINTERP;
  106.    this.FINDINTERP=mR3CNSLNGM_FINDINTERP;
  107.    this.GETINTERPCLID=mR3CNSLNGM_GETINTERPCLID;
  108.  
  109.    // Attributes
  110.    this.GetScript=GetR3CNSLNGA_Script;
  111.    this.SetScript=SetR3CNSLNGA_Script;
  112.    this.GetScriptClid=GetR3CNSLNGA_ScriptClid;
  113.    this.SetScriptClid=SetR3CNSLNGA_ScriptClid;
  114.    this.GetScriptObj=GetR3CNSLNGA_ScriptObj;
  115.    this.SetScriptObj=SetR3CNSLNGA_ScriptObj;
  116. }
  117.  
  118. r3Cnslng.prototype=new r3Constraint;
  119. // r3cnslng.h_H